<script>
export default {
  name: "Page1",
  data(){
    return {
      username: '' //姓名
    }
  },
  mounted() {
    //从路由参数中获得参数
    this.username = this.$route.query.username;
  }
}
</script>

<template>
  <div>
    <h1>这是页面1-->{{username}}</h1>
  </div>
</template>

<style scoped>

</style>